﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="AllSellingSlip.aspx.cs" Inherits="BillingManagment.AllSellingSlip" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="text-align:center">
        All Selling Slip Detail</h1>
    <table>
        <tr>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server">
                </asp:DropDownList>
            </td>
            <td>
            </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
    </table>
    <table border="1px" style="border-color: black; font-size: medium" cellspacing="0"
        cellpadding="0">
        <tr>
            <th>
                Farmer Name
            </th>
            <th>
                Selling Date
            </th>
            <th>
                Total Items
            </th>
            <th>
                Total Amount
            </th>
        </tr>
        <%  if (dt != null && dt.Rows.Count > 0)
            {
        %>
        <% for (int i = 0; i < dt.Rows.Count; i++)
           {
        %>
        <tr>
            <td>
                <a href="Billing.aspx?RequestID=<%=dt.Rows[i]["S_ID"].ToString() %>&Farmer_Id=<%=dt.Rows[i]["Farmer_Id"].ToString() %>&S_Date=<%=dt.Rows[i]["S_Date"].ToString() %>"
                    style="cursor: pointer">
                    <%=dt.Rows[i]["Name"].ToString()%></a>
            </td>
            <td>
                <%=dt.Rows[i]["S_Date"].ToString()%>
            </td>
            <td>
                <%=dt.Rows[i]["Total_items"].ToString()%>
            </td>
            <td>
                <%=dt.Rows[i]["Total_Amount"].ToString()%>
            </td>
        </tr>
        <% }%>
        <%}
            else
            {%>
        <tr>
            <td colspan="9">
                No records found.
            </td>
        </tr>
        <%  }%>
    </table>
</asp:Content>
